package com.syher.seconds.kill.provider.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.syher.seconds.kill.pojo.Stock;
import com.syher.seconds.kill.provider.mapper.StockMapper;
import com.syher.seconds.kill.service.IStockService;
import org.springframework.stereotype.Repository;

@Repository
@Service(interfaceClass = IStockService.class, dynamic = true, proxy = "jdk")
public class StockService extends BaseServiceImpl<Stock, StockMapper> implements StockMapper {

    @Override
    public Integer getCurrentCount() throws Exception {
        return null;
    }

    @Override
    public int updateStockByOptimistic(Stock stock) {
        return getMapper().updateStockByOptimistic(stock);
    }
}
